package com.banach.prema.enums;


public enum AlarmStatus {

    DRAFT("draft","草稿"),
    PUBLISHED("published","已发布"),
    ELIMINATED("eliminated","已解除");

    private final String value;
    private final String desc;

    AlarmStatus(String value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    public static AlarmStatus getAlarmStatus(String value){
        for(AlarmStatus ut : AlarmStatus.values()){
            if(ut.getValue().equals(value)){
                return ut;
            }
        }
        return null;
    }

    public String getValue() {
        return this.value;
    }

    public String getDesc() {
        return desc;
    }
}
